package com.ithuameng.admin.app.system.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ithuameng.admin.enums.YesNo;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 用户
 *
 * @author ithuameng
 */
@Data
@TableName("t_user")
@EqualsAndHashCode(callSuper = false)
public class User extends AdminLogic<Long> {

    private static final long serialVersionUID = 2817213935301558093L;

    public static final String USERNAME = "username";

    public static final String NICKNAME = "nickname";

    public static final String PASSWORD = "password";

    public static final String MOBILE = "mobile";

    public static final String REMARK = "remark";

    public static final String STATUS = "status";

    public static final Long ADMIN_ID = 1L;

    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     * 用户名
     */
    private String username;

    /**
     * 昵称
     */
    private String nickname;

    /**
     * 密码
     */
    private String password;

    /**
     * 手机号码
     */
    private String mobile;

    /**
     * 备注
     */
    private String remark;

    /**
     * 状态
     */
    private YesNo status;
}
